<!DOCTYPE html>
<!-- saved from url=(0064)http://www.ten-dimension.com/member.php?mod=logging&action=login -->
<html xmlns="http://www.w3.org/1999/xhtml" class="ie8" lang="zh-CN" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <title>登录 &lsaquo; thisding 资源共享网</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="Shortcut Icon" href="/static/img/ico/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="/static/web/login/resize.css">
    <link rel="stylesheet" href="/static/web/login/index.css">
    <link rel="stylesheet" href="/static/web/login/swiper-3.3.1.min.css">
    <link rel="stylesheet" href="/static/web/login/login.css">
    <!--<link rel='stylesheet' id='style-css' href="../../static/web/wp-content/themes/WU/style.css-ver=WU.css" type='text/css' media='all' />-->
    <!--<link rel='stylesheet' id='bootstrap-css' href="../../static/web/wp-content/themes/WU/includes/css/bootstrap.min.css-ver=WU.css" type='text/css' media='all' />-->

    <script src="/static/web/wp-includes/js/jquery/jquery-3.3.1.min.js"></script>
    <script src="/static/web/login/layer.js" type="text/javascript"></script>
    <link rel="stylesheet" href="/static/web/login/layer.css" id="layuicss-layer">
    <script src="/static/web/login/jquery.validate.js" type="text/javascript"></script>
    <script src="/static/web/login/common.js" type="text/javascript"></script>
    <script src="/static/web/login/mycommon.js" type="text/javascript"></script>
    <style>

        html, body {
            width: 100%;
            height: 100%;
        }
        .login_box .logo p {
            padding: 15px;
        }
        .p_pop.p_opt img {
            height: 40px !important;
            position: relative;
            right: 0px;
            top: -10px;
        }

        .login_box .lists .yzm_box.item_2 {
            height: 40px;
            position: relative;
            font-size: 0;
        }

        .login_box .lists .yzm_box.item_2 input[name=seccodeverify] {
            border: none;
            height: 40px !important;
            padding: 0 5px;
            line-height: 40px !important;
            font-size: 14px;
            width: 100% !important;
            box-sizing: border-box;
        }
        input[name=seccodeverify] {
            border: 1px solid black;
            cursor: text !important;
            color: black !important;
            background-color: white !important;
            height: 24px !important;
        }

        footer {
            opacity: 0.6;
        }

        .errmsg{
            color: red;
        }

    </style>
   <!-- <script type="text/javascript" id="JcjXlleZhOIaYYKIIKJUanPNWXFOOrkK" charset="UTF-8"
            src="/static/web/login/common_extra.js"></script>-->
    <!--<script type="text/javascript" id="seccodejs_cSbEYYyT" src="/static/web/login/misc.php"></script>-->
</head>

<body >
<div class="login_warp" >
    <div class="login_pannel clear inner">
        <form d="loginWrap" method="post" autocomplete="off" name="login" id="loginform" class="cl">
            <input type="hidden" name="formhash" value="9f132746">
            <input type="hidden" name="referer" value="http://www.ten-dimension.com/member.php?mod=profile">
            <div class="login_box" style="height:560px;">
                <div class="logo">
                    <img src="/static/img/logo.png">
                    <p>欢迎登录</p>
                </div>
                <ul class="lists">
                    <li class="item item_1 clear">
                        <input type="" class="" name="email" placeholder="邮箱">
                    </li>
                    <li class="item item_1 clear">
                        <input type="password" class="" name="pwd" placeholder="密码">
                    </li>
                    <li  class="errmsg">

                    </li>
                    <input type="hidden" id="ispc" name="ispc" value="1">
                    <!--<script>
                        function IsPC() {
                            var userAgentInfo = navigator.userAgent;
                            var Agents = ["Android", "iPhone",
                                "SymbianOS", "Windows Phone",
                                "iPad", "iPod"];
                            var flag = true;
                            for (var v = 0; v < Agents.length; v++) {
                                if (userAgentInfo.indexOf(Agents[v]) > 0) {
                                    flag = false;
                                    break;
                                }
                            }
                            return flag;
                        }

                        var ispc = IsPC() ? "1" : "0";
                        document.querySelector("#ispc").value = ispc;
                    </script>-->

                    <!--<li class="clear item item_2 yzm_box" style="">
                        <div class="mtm"><span id="seccode_cSbEYYyT"><input name="seccodehash" type="hidden"
                                                                            value="cSbEYYyT"><input name="seccodemodid"
                                                                                                    type="hidden"
                                                                                                    value="member::logging">验证码 <span
                                id="seccodecSbEYYyT" onclick="showMenu(this.id)"><input name="seccodeverify"
                                                                                        id="seccodeverify_cSbEYYyT"
                                                                                        type="text" autocomplete="off"
                                                                                        style="ime-mode:disabled;width:100px"
                                                                                        class="txt px vm"
                                                                                        onblur="checksec(&#39;code&#39;, &#39;cSbEYYyT&#39;, 0, null, &#39;member::logging&#39;)"> <a
                                href="javascript:;" onclick="updateseccode(&#39;cSbEYYyT&#39;);doane(event);"
                                class="xi2">换一个</a><span id="checkseccodeverify_cSbEYYyT"><img
                                src="/static/web/login/none.gif" width="16" height="16" class="vm"></span></span><div
                                id="seccodecSbEYYyT_menu" class="p_pop p_opt" style="display:none"><span
                                id="vseccode_cSbEYYyT">输入下图中的字符<br><img onclick="updateseccode(&#39;cSbEYYyT&#39;)"
                                                                        width="100" height="30"
                                                                        src="/static/web/login/misc(1).php" class="vm"
                                                                        alt=""></span></div></span>
                            <script type="text/javascript"
                                    reload="1">updateseccode('cSbEYYyT', '<sec> <span id="sec<hash>" onclick="showMenu(this.id)"><sec></span><div id="sec<hash>_menu" class="p_pop p_opt" style="display:none"><sec></div>', 'member::logging');</script>
                        </div>
                    </li>-->

                    <li class="btn clear">
                        <!--<button class="submit_btn" type="submit" name="loginsubmit" value="true" tabindex="1"><strong>登录</strong></button>-->
                        <input type="button" name="loginsubmit" onclick="toLogin()" class="submit_btn" value="登录">
                    </li>
                    <li class="item_3 clear">
                        <a th:href="@{/download/sys-user/toRegister}" class="goto_register">免费注册</a>
                        <a th:href="@{/findPwd}" class="goto_forget">忘记密码？</a>
                    </li>
                    <li class="item_4 clear">
                        <div class="other_method">
                            <span>其他登录方式</span>
                            <!--<a href="plugin.php?id=wx" class="goto_weixin"><img src="/template/default/forum/img/ic_3.jpg"/></a>-->
                            <!--<a  onclick="qqlogin()" class="goto_weixin"><img src="/static/web/login/ic_3.jpg"></a>-->
                            <a  onclick="weiboLogin()" class="goto_weibo"><img src="/static/web/login/ic_4.jpg"></a>
                            <a  onclick="qqlogin()" class="goto_weibo"><img src="/static/web/login/qq.png"></a>
                        </div>
                    </li>
                </ul>
            </div>
        </form>
    </div>
   <!-- <div class="clearfix"></div>
    <div style="position: fixed;bottom: 0">
        <div th:replace="web/common/foot::footer"></div>
    </div>-->
</div>
<div id="weixin_danceng">
    <img src="/static/web/login/code.jpg">
</div>
<div class="clearfix"></div>
<!--<div id="footer" class="two-s-footer clearfix">
<div class="footer-box"  >
    <div class="container">
        <div class="social-footer">
            <a class="weiboii" href="https://weibo.com/cookieking" target="_blank"><i class="icon-weibo"></i></a>
            <a class="mailii" href="http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&email=x@waitsun.com"
               target="_blank"><i class="icon-mail-2"></i></a>
            <a class="qqii" href="http://wpa.qq.com/msgrd?v=3&uin=3112790975&site=qq&menu=yes" target="_blank"><i
                    class="icon-qq"></i></a>
            <a id="tooltip-f-weixin" class="wxii" href="javascript:void(0);"><i class="icon-wechat"></i></a>
        </div>
        <div class="nav-footer">
            <a href="/aboutus">联系我们</a>
            <a href="/copyright">版权声明</a>
            <a href="http://help.waitsun.com/">网站帮助</a>
            <a href="/download/arcitalLable/hotTagsModelPage">热门标签</a>
            <a href="/sponsor">赞助我们</a>
        </div>
        <div class="copyright-footer">
            <p>Copyright © 2010 - 2019 <a class="site-link" href="/" title="thisding 资源共享网" rel="home">thisding 资源共享网</a>
                · WU Theme Source <a href="http://www.suxing.me/" target="_blank">Suxing</a></p>
        </div>
        <div class="links-footer">
            <span>友情链接：</span>
            <a href="index.htm" rel="me" target="_blank">Mac软件分享</a>
            <a href="https://www.paurl.com/'" target="_blank">互联网运营培训</a>
            <a href="http://www.sqlsec.com/" title="白帽子国光的信息安全学习记录博客" target="_blank">国光的博客</a>
        </div>
    </div>
</div>-->

<script>
    $("input[type=text]").each(function () {
        $(this).on("blur", function () {
            $(this).prop("readonly", "readonly");
        }).on("focus", function () {
            $(this).removeAttr("readonly");
        });
        $(this).prop("readonly", "readonly");
    });
</script>

<script type="text/javascript">

    function toLogin() {
        var d = {};
        var vals = $("#loginform").serializeArray();
        $.each(vals, function () { d[this.name] = this.value; });
        var data=JSON.stringify(d);
        $.ajax({
            url:"/download/sys-user/login",
            type:'post',
            data: d,
            // datatype: "json",
            success:function (res) {
                $(".errmsg").text(res.msg);
                if(res.code==0){
                    location.href="/";
                }
            }
        });

    }


    function wp_attempt_focus() {
        setTimeout(function () {
            try {
                d = document.getElementById('user_login');
                d.focus();
                d.select();
            } catch (e) {
            }
        }, 200);
    }

    wp_attempt_focus();
    if (typeof wpOnload == 'function') wpOnload();


    function qqlogin() {
        $.ajax({
            url:"/thirdAccountSettings/settingsByType",
            type:'post',
            data:{"type":18},
            success:function (res) {
                window.open("https://graph.qq.com/oauth2.0/authorize" +
                    "?response_type=code&client_id="+res.appid+"&state=state" +
                    "&redirect_uri="+res.redirectUri);
            }
        });

    }

    function weiboLogin() {
        $.ajax({
            url:"/thirdAccountSettings/settingsByType",
            type:'post',
            data:{"type":17},
            success:function (res) {
                //以下为按钮点击事件的逻辑。注意这里要重新打开窗口
                //否则后面跳转到QQ登录，授权页面时会直接缩小当前浏览器的窗口，而不是打开新窗口
                window.open("https://api.weibo.com/oauth2/authorize" +
                    "?client_id="+res.appid +
                    "&redirect_uri="+res.redirectUri);
            }
        });
    }

    //友情链接
    function friendsLink() {
        $.ajax({
            url:"/download/friendLink/friendLinkList",
            type:'get',
            datatype: "json",
            success:function (res) {
                var html="<span>友情链接：</span>";
                $.each(res.data,function(i,n){
                    html+=`<a href="${n.url}" rel="me" target="_blank">${n.name}</a>`;
                });
                $(".links-footer").html(html);
            }

        });
    }
</script>
</body>
</html>